package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import jakarta.validation.constraints.*;

/**
 * 试卷题目表单对象
 *
 * @author youlaitech
 * @since 2025-07-03 10:57
 */
@Getter
@Setter
@Schema(description = "试卷题目表单对象")
public class ExamPapersForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "不能为空")
    private Integer id;

    @Schema(description = "科目")
    @NotBlank(message = "科目不能为空")
    @Size(max=50, message="科目长度不能超过50个字符")
    private String subject;

    @Schema(description = "编号")
    @NotBlank(message = "编号不能为空")
    @Size(max=20, message="编号长度不能超过20个字符")
    private String questionNumber;

    @Schema(description = "题型")
    @NotBlank(message = "题型不能为空")
    @Size(max=30, message="题型长度不能超过30个字符")
    private String questionType;

    @Schema(description = "题目")
    @NotBlank(message = "题目不能为空")
    @Size(max=65535, message="题目长度不能超过65535个字符")
    private String questionContent;

    @Schema(description = "数量")
    private Integer questionCount;


}
